package com.zyz.demo.model;

import lombok.Data;
import lombok.Value;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@Data
@Configuration
@ConfigurationProperties(prefix = "captcha")
public class CaptchaInfo {
    private Integer wide;
    private Integer height;
    private String captchaCodeKye;
    private String captchaTimeKey;
    private Long captchaTime;

    public void setCaptchaTime(Long captchaTime) {
        this.captchaTime = captchaTime * 1000 * 60;
    }
}
